<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/template/template.xhtml">

	<ui:define name="conteudo">
		<center>
			<h:form class="login">
			<p:growl autoUpdate="true" life="3000" showDetail="false"/>
				<p:panel header="Login" style="width:400px;">
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputText value="Login" />
						<p:inputText placeholder="Enter your User Name" value="#{sessionBean.username}" required="true"
							requiredMessage="Enter your User Name!" />
						<h:outputText value="Password" />
						<p:password placeholder="Enter your Password" value="#{sessionBean.password}" required="true"
							requiredMessage="Enter your Password!" />
					</h:panelGrid>
					<p:commandButton value="Login" action="#{sessionBean.efetuarLogin}" ajax="false" />
				</p:panel>
			</h:form>

			<h:outputLink class="senha" value="novaconta.xhtml">
				<h:outputText value="New Account" />
			</h:outputLink>

			<h:outputLink class="senha" value="forgotpassword.xhtml">
				<h:outputText value="Forgot Password" />
			</h:outputLink>

		</center>
	</ui:define>
	
</ui:composition>
</html>